package com.concurrency.example.completionService;

import java.util.concurrent.Callable;

public class Task implements Callable<String> {
    @Override
    public String call() throws Exception {
        /*模拟执行消耗时间*/
        Thread.sleep(1000);

        return "-----" + Thread.currentThread().getId();
    }
}
